package com.gee.game;

import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;

public class GameMIDlet extends MIDlet {
	private GameWorld world = null;
	public static Display display;

	public GameMIDlet() {
		
		
	}

	@Override
	protected void startApp() throws MIDletStateChangeException {
		
		display = Display.getDisplay(this);
		
		world = new GameWorld(this);

		display.setCurrent(world);
		world.startLoop();

	}

	@Override
	protected void pauseApp() {
		// TODO Auto-generated method stub
		world.pauseLoop();

	}

	@Override
	protected void destroyApp(boolean unconditional)
			throws MIDletStateChangeException {
		// TODO Auto-generated method stub
		notifyDestroyed();
	}

}
